import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import "./MenuBar/"

Window {
    id: root
    width: 640
    height: 480
    minimumWidth: 640
    minimumHeight: 480
    visible: true
    title: qsTr("自定义组件")

    CusMenuBar {
        CusMenu {
            title: qsTr("文件")

            Action {
                text: "打开"
            }
            Action {
                text: "新建"
            }
            MenuSeparator {
                contentItem: Rectangle {
                    implicitWidth: 200
                    implicitHeight: 1
                    color: "#21be2b"
                }
            }
            Action {
                text: "关闭"
                enabled: false
            }
        }
    }
}
